import request from '@/common/request'

export function FilesSet(data) {
  return request({
    url: '/tool/files/set',
    method: 'post',
	data:data
  })
}

export function getFilesSet() {
  return request({
    url: '/tool/files/getSet',
    method: 'get',
	
  })
}



export function getCateList() {
  return request({
    url: '/tool/files/cateTree',
    method: 'get'
  })
}

export function addCate(data) {
  return request({
    url: '/tool/files/cateAdd',
    method: 'post',
	data:data
  })
}


export function editCate(data) {
  return request({
    url: '/tool/files/cateEdit',
    method: 'post',
	data:data
  })
}

export function changeOrder(data) {
  return request({
    url: '/tool/files/cateChangeOrder',
    method: 'post',
	data:data
  })
}


export function delCate(id) {
  return request({
    url: '/tool/files/cateDel/id/'+id,
    method: 'get',

  })
}


export function FilesListPage(data) {
  return request({
    url: '/tool/files/list',
    method: 'post',
	data:data
  })
}
export function delFiles(id) {
    return request({
        url: '/tool/files/delRole/id/'+id,
        method: 'get',

    })
}
